package com.mydemo.common.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * 选项类
 * @author Last_Island
 * @version 1.0
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Option {

    /** 选项id **/
    private Long id;

    /** 选项名称 **/
    private String label;

    /** 子选项 **/
    private List<Option> children;

    public Option() {
    }

    public Option(Long id, String label, List<Option> children) {
        this.id = id;
        this.label = label;
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<Option> getChildren() {
        return children;
    }

    public void setChildren(List<Option> children) {
        this.children = children;
    }
}
